<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>资讯详情 - 我国成功发射新一代通信技术试验卫星</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #f5f5f5;
            padding-bottom: 60px;
            color: #1a1a1a;
        }
        
        /* 导航栏样式 */
        .top-nav {
            background-color: white;
            padding: 12px 16px;
            border-bottom: 1px solid #eee;
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .nav-back {
            color: #1a1a1a;
            text-decoration: none;
            font-size: 18px;
        }
        
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: space-around;
            padding: 8px 0;
            z-index: 100;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #666;
            text-decoration: none;
            font-size: 10px;
        }
        
        .nav-item.active {
            color: #2563eb;
        }
        
        .nav-item i {
            font-size: 20px;
            margin-bottom: 4px;
        }
        
        /* 文章内容容器 */
        .article-container {
            background-color: white;
            margin-bottom: 12px;
        }
        
        /* 文章头部 */
        .article-header {
            padding: 16px;
        }
        
        .article-title {
            font-size: 20px;
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 12px;
        }
        
        .source-info {
            display: flex;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .source-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 10px;
        }
        
        .source-name {
            font-weight: 600;
            font-size: 15px;
        }
        
        .publish-time {
            font-size: 12px;
            color: #999;
            margin-top: 2px;
        }
        
        .follow-btn {
            margin-left: auto;
            background-color: #2563eb;
            color: white;
            border: none;
            border-radius: 20px;
            padding: 4px 12px;
            font-size: 13px;
            font-weight: 500;
        }
        
        /* 文章内容 */
        .article-content {
            padding: 0 16px 16px;
            font-size: 16px;
            line-height: 1.6;
        }
        
        .article-content p {
            margin-bottom: 16px;
        }
        
        .article-image {
            width: 100%;
            border-radius: 8px;
            margin: 16px 0;
        }
        
        .image-caption {
            font-size: 13px;
            color: #999;
            text-align: center;
            margin-top: -12px;
            margin-bottom: 16px;
        }
        
        /* 文章标签和数据 */
        .article-meta {
            padding: 0 16px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #f0f0f0;
            margin-top: 8px;
        }
        
        .article-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .article-tag {
            background-color: #f5f5f5;
            color: #666;
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 13px;
            text-decoration: none;
        }
        
        .article-stats {
            font-size: 13px;
            color: #999;
        }
        
        /* 操作按钮 */
        .action-buttons {
            display: flex;
            justify-content: space-around;
            padding: 10px 0;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
        }
        
        .action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #666;
            text-decoration: none;
            font-size: 12px;
            flex: 1;
        }
        
        .action-btn i {
            font-size: 18px;
            margin-bottom: 4px;
        }
        
        .action-btn.active {
            color: #2563eb;
        }
        
        .action-btn:hover {
            color: #2563eb;
        }
        
        /* 评论区 */
        .comments-section {
            background-color: white;
            padding: 16px;
            margin-bottom: 12px;
        }
        
        .comments-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
        }
        
        .comments-title span {
            color: #2563eb;
            margin-left: 6px;
        }
        
        /* 评论输入框 */
        .comment-input-container {
            display: flex;
            margin-bottom: 20px;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 10px;
        }
        
        .comment-input {
            flex: 1;
            border: 1px solid #eee;
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 14px;
            background-color: #f5f5f5;
            resize: none;
            height: 38px;
        }
        
        .comment-submit {
            margin-left: 8px;
            background-color: #2563eb;
            color: white;
            border: none;
            border-radius: 50%;
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 评论列表 */
        .comments-list {
            margin-bottom: 16px;
        }
        
        .comment-item {
            display: flex;
            margin-bottom: 16px;
        }
        
        .comment-content {
            flex: 1;
            background-color: #f5f5f5;
            border-radius: 18px;
            padding: 10px 14px;
        }
        
        .comment-author {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 4px;
        }
        
        .comment-text {
            font-size: 14px;
            line-height: 1.4;
        }
        
        .comment-actions {
            display: flex;
            margin-top: 8px;
            font-size: 12px;
        }
        
        .comment-time {
            color: #999;
            margin-right: 12px;
        }
        
        .comment-action-btn {
            color: #999;
            text-decoration: none;
            margin-right: 12px;
            display: flex;
            align-items: center;
        }
        
        .comment-action-btn i {
            font-size: 12px;
            margin-right: 4px;
        }
        
        .comment-action-btn:hover {
            color: #2563eb;
        }
        
        /* 回复样式 */
        .replies-list {
            margin-top: 12px;
            margin-left: 16px;
        }
        
        .reply-item {
            display: flex;
            margin-bottom: 10px;
        }
        
        .reply-content {
            flex: 1;
            background-color: #e9e9eb;
            border-radius: 16px;
            padding: 8px 12px;
        }
        
        .reply-author {
            font-weight: 600;
            font-size: 13px;
        }
        
        .reply-text {
            font-size: 13px;
            line-height: 1.4;
        }
        
        .reply-to {
            color: #2563eb;
        }
        
        /* 加载更多评论 */
        .load-more {
            text-align: center;
            padding: 8px 0;
            color: #2563eb;
            font-size: 14px;
            cursor: pointer;
            border-top: 1px solid #eee;
            margin-top: 8px;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <a href="#" class="nav-back">
            <i class="fas fa-arrow-left"></i>
        </a>
        <h5 class="mb-0">资讯详情</h5>
        <div class="d-flex">
            <button class="btn btn-link p-1 text-dark me-1">
                <i class="fas fa-share-alt"></i>
            </button>
            <button class="btn btn-link p-1 text-dark">
                <i class="fas fa-ellipsis-v"></i>
            </button>
        </div>
    </div>
    
    <!-- 文章内容 -->
    <div class="article-container">
        <div class="article-header">
            <h1 class="article-title">我国成功发射新一代通信技术试验卫星，多项技术实现突破</h1>
            
            <div class="source-info">
                <img src="https://picsum.photos/id/237/100/100" alt="科技日报" class="source-avatar">
                <div>
                    <div class="source-name">科技日报</div>
                    <div class="publish-time">2023年6月10日 08:30 · 3.2万阅读</div>
                </div>
                <button class="follow-btn">关注</button>
            </div>
        </div>
        
        <div class="article-content">
            <p>今日凌晨，我国在西昌卫星发射中心使用长征三号乙运载火箭，成功将新一代通信技术试验卫星发射升空，卫星顺利进入预定轨道，发射任务获得圆满成功。</p>
            
            <img src="https://picsum.photos/id/180/800/500" alt="卫星发射现场" class="article-image">
            <div class="image-caption">图为卫星发射现场（来源：新华社）</div>
            
            <p>此次发射的新一代通信技术试验卫星由中国航天科技集团有限公司五院研制，采用了多项新技术，将在轨开展高速率通信、星间链路等试验验证。</p>
            
            <p>据项目负责人介绍，该卫星突破了一系列关键技术，具有通信容量大、传输速率高、灵活度强等特点，将为我国未来通信网络建设提供重要技术支撑。</p>
            
            <img src="https://picsum.photos/id/42/800/500" alt="卫星示意图" class="article-image">
            <div class="image-caption">新一代通信技术试验卫星示意图</div>
            
            <p>本次任务是长征系列运载火箭的第478次飞行。西昌卫星发射中心表示，将持续优化发射流程，提高任务成功率，为我国航天事业发展贡献力量。</p>
            
            <p>业内专家认为，随着新一代通信技术试验卫星的成功发射和应用，我国在通信卫星领域的技术水平将得到进一步提升，对推动我国数字经济发展、提升国家信息化水平具有重要意义。</p>
        </div>
        
        <div class="article-meta">
            <div class="article-tags">
                <a href="#" class="article-tag">科技</a>
                <a href="#" class="article-tag">航天</a>
                <a href="#" class="article-tag">国内新闻</a>
                <a href="#" class="article-tag">卫星</a>
            </div>
            <div class="article-stats">
                <i class="far fa-eye"></i> 3.2万
            </div>
        </div>
        
        <div class="action-buttons">
            <a href="#" class="action-btn active">
                <i class="fas fa-thumbs-up"></i>
                <span>568</span>
            </a>
            <a href="#" class="action-btn">
                <i class="far fa-comment"></i>
                <span>128</span>
            </a>
            <a href="#" class="action-btn">
                <i class="far fa-share-square"></i>
                <span>分享</span>
            </a>
            <a href="#" class="action-btn">
                <i class="far fa-bookmark"></i>
                <span>收藏</span>
            </a>
        </div>
    </div>
    
    <!-- 评论区 -->
    <div class="comments-section">
        <div class="comments-title">
            评论 <span>(128)</span>
        </div>
        
        <!-- 评论输入框 -->
        <div class="comment-input-container">
            <img src="https://picsum.photos/id/64/100/100" alt="用户头像" class="user-avatar">
            <textarea class="comment-input" placeholder="写下你的评论..."></textarea>
            <button class="comment-submit">
                <i class="fas fa-paper-plane"></i>
            </button>
        </div>
        
        <!-- 评论列表 -->
        <div class="comments-list">
            <!-- 评论1 -->
            <div class="comment-item">
                <img src="https://picsum.photos/id/91/100/100" alt="用户头像" class="user-avatar">
                <div class="comment-content">
                    <div class="comment-author">航天爱好者</div>
                    <div class="comment-text">这次发射的卫星采用了Ka频段通信技术，传输速率比之前提高了数倍，值得期待后续的应用成果！</div>
                    <div class="comment-actions">
                        <div class="comment-time">2小时前</div>
                        <a href="#" class="comment-action-btn">
                            <i class="far fa-thumbs-up"></i> 42
                        </a>
                        <a href="#" class="comment-action-btn reply-btn">
                            <i class="far fa-comment"></i> 回复
                        </a>
                    </div>
                    
                    <!-- 回复列表 -->
                    <div class="replies-list">
                        <div class="reply-item">
                            <img src="https://picsum.photos/id/237/100/100" alt="用户头像" class="user-avatar" style="width:28px;height:28px;">
                            <div class="reply-content">
                                <div class="reply-author">
                                    <span class="reply-to">@航天爱好者</span> 是的，这项技术突破对未来的卫星互联网建设至关重要
                                </div>
                                <div class="comment-actions">
                                    <div class="comment-time">1小时前</div>
                                    <a href="#" class="comment-action-btn">
                                        <i class="far fa-thumbs-up"></i> 15
                                    </a>
                                    <a href="#" class="comment-action-btn reply-btn">
                                        <i class="far fa-comment"></i> 回复
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 评论2 -->
            <div class="comment-item">
                <img src="https://picsum.photos/id/65/100/100" alt="用户头像" class="user-avatar">
                <div class="comment-content">
                    <div class="comment-author">科技观察员</div>
                    <div class="comment-text">长征三号乙运载火箭的可靠性非常高，这次发射也是一次完美的任务执行。期待我国航天事业取得更多突破！</div>
                    <div class="comment-actions">
                        <div class="comment-time">3小时前</div>
                        <a href="#" class="comment-action-btn">
                            <i class="far fa-thumbs-up"></i> 36
                        </a>
                        <a href="#" class="comment-action-btn reply-btn">
                            <i class="far fa-comment"></i> 回复
                        </a>
                    </div>
                </div>
            </div>
            
            <!-- 评论3 -->
            <div class="comment-item">
                <img src="https://picsum.photos/id/24/100/100" alt="用户头像" class="user-avatar">
                <div class="comment-content">
                    <div class="comment-author">数字生活家</div>
                    <div class="comment-text">这种高速率通信卫星对偏远地区的网络覆盖有很大帮助，希望能尽快投入实际应用，让更多人受益。</div>
                    <div class="comment-actions">
                        <div class="comment-time">5小时前</div>
                        <a href="#" class="comment-action-btn">
                            <i class="far fa-thumbs-up"></i> 28
                        </a>
                        <a href="#" class="comment-action-btn reply-btn">
                            <i class="far fa-comment"></i> 回复
                        </a>
                    </div>
                    
                    <!-- 回复列表 -->
                    <div class="replies-list">
                        <div class="reply-item">
                            <img src="https://picsum.photos/id/91/100/100" alt="用户头像" class="user-avatar" style="width:28px;height:28px;">
                            <div class="reply-content">
                                <div class="reply-author">
                                    <span class="reply-to">@数字生活家</span> 据了解，相关应用试验已经在规划中，预计明年会有实质性进展
                                </div>
                                <div class="comment-actions">
                                    <div class="comment-time">4小时前</div>
                                    <a href="#" class="comment-action-btn">
                                        <i class="far fa-thumbs-up"></i> 8
                                    </a>
                                    <a href="#" class="comment-action-btn reply-btn">
                                        <i class="far fa-comment"></i> 回复
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多评论 -->
        <div class="load-more">
            加载更多评论
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <a href="#" class="nav-item">
            <i class="fas fa-home"></i>
            <span>首页</span>
        </a>
        <a href="#" class="nav-item active">
            <i class="fas fa-newspaper"></i>
            <span>资讯</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-plus-circle"></i>
            <span>发布</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-bell"></i>
            <span>通知</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-user"></i>
            <span>我的</span>
        </a>
    </div>

    <!-- Bootstrap 5 JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 点赞按钮交互
            document.querySelectorAll('.action-btn .fa-thumbs-up, .comment-action-btn .fa-thumbs-up').forEach(icon => {
                const btn = icon.closest('a');
                btn.addEventListener('click', function(e) {
                    e.preventDefault();
                    const countEl = this.querySelector('span') || this.childNodes[1];
                    
                    if (icon.classList.contains('far')) {
                        // 未点赞状态
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('active');
                        countEl.textContent = ` ${parseInt(countEl.textContent.trim()) + 1}`;
                    } else {
                        // 已点赞状态
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('active');
                        countEl.textContent = ` ${parseInt(countEl.textContent.trim()) - 1}`;
                    }
                });
            });
            
            // 收藏按钮交互
            document.querySelector('.action-btn .fa-bookmark').closest('a').addEventListener('click', function(e) {
                e.preventDefault();
                const icon = this.querySelector('i');
                
                if (icon.classList.contains('far')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('active');
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('active');
                }
            });
            
            // 关注按钮交互
            document.querySelector('.follow-btn').addEventListener('click', function() {
                if (this.textContent === '关注') {
                    this.textContent = '已关注';
                    this.style.backgroundColor = '#eee';
                    this.style.color = '#666';
                } else {
                    this.textContent = '关注';
                    this.style.backgroundColor = '#2563eb';
                    this.style.color = 'white';
                }
            });
            
            // 回复按钮交互
            document.querySelectorAll('.reply-btn').forEach(btn => {
                btn.addEventListener('click', function(e) {
                    e.preventDefault();
                    const commentInput = document.querySelector('.comment-input');
                    const author = this.closest('.comment-content, .reply-content').querySelector('.comment-author, .reply-author').textContent.split('@')[0];
                    
                    commentInput.focus();
                    commentInput.value = `@${author} `;
                    // 调整文本框高度以适应内容
                    commentInput.style.height = 'auto';
                    commentInput.style.height = (commentInput.scrollHeight) + 'px';
                });
            });
            
            // 评论输入框高度自适应
            const commentInput = document.querySelector('.comment-input');
            commentInput.addEventListener('input', function() {
                this.style.height = 'auto';
                // 限制最大高度
                if (this.scrollHeight > 100) {
                    this.style.height = '100px';
                    this.style.overflowY = 'auto';
                } else {
                    this.style.height = (this.scrollHeight) + 'px';
                    this.style.overflowY = 'hidden';
                }
            });
            
            // 提交评论
            document.querySelector('.comment-submit').addEventListener('click', function() {
                const commentText = commentInput.value.trim();
                if (commentText) {
                    // 模拟评论提交成功
                    alert('评论已提交！');
                    commentInput.value = '';
                    commentInput.style.height = '38px';
                }
            });
            
            // 加载更多评论
            document.querySelector('.load-more').addEventListener('click', function() {
                this.innerHTML = '<i class="fas fa-circle-notch fa-spin"></i> 加载中...';
                
                // 模拟加载延迟
                setTimeout(() => {
                    this.textContent = '没有更多评论了';
                    this.style.color = '#999';
                    this.style.cursor = 'default';
                }, 1500);
            });
        });
    </script>
</body>
</html>

